On the equivalence of state transformer semantics and predicate transformer semantics
نویسنده
چکیده
G. Plotkin and the author [13] have worked out the equivalence between state transformer semantics and predicate transformer semantics in a domain theoretical setting for programs combining nondeterminism and probability. Works of C. Morgan and co-authors [20], Keimel, Rosenbusch and Streicher [14, 15], already go in the same direction using only discrete state spaces. In fact, Keimel and Plotkin did not restrict to probabilities or subprobabilities, but worked in an extended setting admitting positive measures that may even have infinite values. This extended setting offers technical advantages. It was the intention of the authors to cut down their results to the subprobabilistic case in a subsequent paper. A paper by J. Goubault-Larrecq [7] already goes in this direction. When preparing a first version of the follow-up paper, the author of this paper wanted to clarify for himself the basic ideas. In fact, the paper [13] is technically quite involved, and when one reaches the last section, where the equivalence of predicate and state transformer semantics is finally put together, one is quite exhausted and has difficulties to see the leading ideas. Even the referee of the paper seemed to have given up at that point. It is the aim of this paper to begin from the other end. In all the situations that the author has been dealing with, the state transformer semantics had been given by a monad T over the category DCPO of directed complete posets (= dcpos) and Scott-continuous functions (= functions preserving the partial order and suprema of directed subsets). A state transformer interprets the input-output behavior of a program by a Scott-continuous map t from the input domain X to the ’powerdomain’ TY over the output domain Y . Thus, state transformers live in the Kleisli category associated with the monad T. If there is an equivalent predicate transformer semantics, predicate transformers have to live in a category (dually) equivalent to the Kleisli category. In my experience the equivalence between state and predicate transformer semantics is based on a very simple principle derived from the continuation monad. One starts with a dcpo R of ’observations’. The elements of the function space (the exponential) R are ’observable predicates’ over the dcpo X , and maps s : R → R are ’predicate transformers’. Assigning to every dcpo X the space R X of maps φ : R → R gives rise to a monad, the ’continuation monad’. The maps t : X → RRX are ’state transformers’. It is a simple observation that there is a natural bijection between state transformers and predicate transformers (see Section 1). Monads are used in denotational semantics to model computational effects. In lots of cases they are obtained by using a dcpo R of observations carrying an additional algebraic structure. This algebraic structure carries over to the function spaces R and R X . It leads to two kinds of monads ’subordinate’ to the continuation monad. One may assign to each dcpo X firstly the dcpo MRX ⊆ R X of all Scott-continuous algebra homomorphism φ : R → R (see Section 3) and secondly the directed complete subalgebra FRX of R X generated by the projections x̂ = (f 7→ f(x)) : R → R, x ∈ X (see Section 4). ∗Fachbereich Mathematik, Technische Universität Darmstadt, 64342 Darmstadt, Germany, email: [email protected] Work supported by Deutsche Forschungsgemeinschaft (DFG).
منابع مشابه
A duality between LM-fuzzy possibility computations and their logical semantics
Let X be a dcpo and let L be a complete lattice. The family σL(X) of all Scott continuous mappings from X to L is a complete lattice under pointwise order, we call it the L-fuzzy Scott structure on X. Let E be a dcpo. A mapping g : σL(E) −> M is called an LM-fuzzy possibility valuation of E if it preserves arbitrary unions. Denote by πLM(E) the set of all LM-fuzzy possibility valuations of E. T...
متن کاملA generalization of the Chen-Wu duality into quantale-valued setting
With the unit interval [0,1] as the truth value table, Chen and Wupresented the concept of possibility computation over dcpos.Indeed, every possibility computation can be considered as a[0,1]-valued Scott open set on a dcpo. The aim of this paper is tostudy Chen-Wu's duality on quantale-valued setting. For clarity,with a commutative unital quantale $L$ as the truth value table, weintroduce a c...
متن کاملRelating State Transformation Semantics and Predicate Transformer Semantics for Parallel Programs
A state transformation semantics and a predicate transformer semantics for programs built from atomic actions, sequential composition, nondeterministic choice, parallel composition, atomisation, and recursion are presented. Both semantic models are derived from some SOS-style labelled transition system. The state transformation semantics and the predicate transformer semantics are shown to be i...
متن کاملMetric Predicate Transformers : Towards aNotion of Re nement for
A compositional weakest precondition semantics is given for a parallel language with recursion using a new metric resumption domain. By extending the classical duality of predicate vs. state transformers, the weakest precondition semantics for the parallel language is shown to be isomorphic to the standard metric state transformer semantics. Moreover , a notion of reenement for predicate transf...
متن کاملMetric Predicate Transformers : Towards a Notion of Re nement for ConcurrencyMarcello
For two parallel languages with recursion a compositional weakest precondition semantics is given using two new metric resumption domains. The underlying domains are characterized by domain equations involving functors that deliveròbservable' and`safety' predicate transformers. Further a reenement relation is deened for this domains and illustrated by rules dealing with concurrent composition. ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- CoRR
دوره abs/1410.7930 شماره
صفحات -
تاریخ انتشار 2012